<!-- left -->
<div id="column_left">

<?php if($tindv) { ?>
 <div class="box">
        <div class="top"><img src="view/theme/default/image/bestsellers.png" alt="" /><?php echo "Tin dịch vụ";?></div>
        <div class="middle">
        <table width="100%">
      
         <?php foreach ($tindv as $tdv){?>
        <tr><td</td><td> 
           <a href="index.php?module=tinhoatdong&act=view&cm=<?php echo $tdv['cat_id']; ?>&id=<?php echo $tdv['tin_hoat_dong_id']; ?>"><?php echo  $tdv['ten_tin_hoat_dong']; ?></a>
      </td></tr>
        <?php } ?>
     
        </table>
        </div>
        <div class="bottom">&nbsp;</div>
    </div>

<?php } ?>

<?php if($loaigioithieu){?>
 <!-- category block-->
    <div class="box">
      <div class="top"><img src="view/theme/default/image/icon/30x30/home.png" alt="" />Giới thiệu</div>
     <div class="" id="category">
     <ul>
        <li><a href="index.php?module=gioithieu&act=list">Giới thiệu chung</a></li>
      <?php foreach ($loaigioithieu as $lgt){?>
   <li><a href="index.php?module=gioithieu&act=view&id=<?php echo $lgt['id']; ?>"><?php echo  $lgt['title']; ?></a></li>
        <?php } ?>
     
    
     </ul>
      </div>
      <div class="bottom">&nbsp;</div>
    </div>
 <!-- ebd category block-->
<?php } ?>



<?php if($loaitintuc){?>
 <!-- category block-->
    <div class="box">
      <div class="top"><img src="view/theme/default/image/icon/30x30/home.png" alt="" />Tin tức</div>
     <div class="" id="category">
     <ul>
      <?php foreach ($loaitintuc as $ltt){?>
     <li> <a href="index.php?module=tinhoatdong&act=list&cm=<?php echo $ltt['cat_id'];?>"><?php echo $ltt['ten_cat_tin'];?></a></li>
        <?php } ?>
     <li><a href="index.php?module=tuyendung&act=list">Tuyển dụng</a></li>
    
     </ul>
      </div>
      <div class="bottom">&nbsp;</div>
    </div>
 <!-- ebd category block-->
<?php } ?>

<?php if($loaiwebsite){?>
     
     <div class="box">
      <div class="top"><img src="view/theme/default/image/icon/30x30/home.png" alt="" />Các loại website</div>
     <div class="" id="category">
     <ul>
     <?php foreach ($loaiwebsite as $lws){?>
     <li> <a href="index.php?module=sanpham&act=loaiweb&id=<?php echo $lws['loai_website_id'];?>"><?php echo $lws['ten_loai_website'];?></a></li>
        
     <?php } ?>
      </ul>
      </div>
      <div class="bottom">&nbsp;</div>
    </div>

<?php } ?>

<?php if($loaiphanmem){?>
     
     <div class="box">
      <div class="top"><img src="view/theme/default/image/icon/30x30/home.png" alt="" />Các loại phần mềm</div>
     <div class="" id="category">
     <ul>
     <?php foreach ($loaiphanmem as $lpm){?>
     <li> <a href="index.php?module=sanpham&act=loaiphanmem&id=<?php echo $lpm['loai_phan_mem_id'];?>"><?php echo $lpm['ten_loai_phan_mem'];?></a></li>
        
     <?php } ?>
      </ul>
      </div>
      <div class="bottom">&nbsp;</div>
    </div>

<?php } ?>

<?php if($mnthietkeweb){?>

 <!-- category block-->
    <div class="box">
      <div class="top"><img src="view/theme/default/image/icon/30x30/home.png" alt="" />Dịch vụ thiết kế web</div>
     <div class="" id="category">
     <ul>
    
     <li><a href="index.php?module=dichvu&act=vthietkeweb">Thông tin chung</a></li>
     <li><a href="index.php?module=dichvu&act=gthietkeweb">Các gói web</a></li>
     <li><a href="index.php?module=dichvu&act=kthietkeweb">Dịch vụ đi kèm</a></li>
     
     </ul>
      </div>
      <div class="bottom">&nbsp;</div>
    </div>
 <!-- ebd category block-->
<?php } ?>

<?php if($loaihosting){?>

 <!-- category block-->
    <div class="box">
      <div class="top"><img src="view/theme/default/image/icon/30x30/home.png" alt="" />Dịch vụ hosting</div>
     <div class="" id="category">
     <ul>
    
     <li><a href="index.php?module=dichvu&act=hosting&type=windows">Hosting Windows</a></li>
     <li><a href="index.php?module=dichvu&act=hosting&type=linux">Hosting Linux</a></li>  
     <li><a href="index.php?module=dichvu&act=hosting&type=tou">Điều khoản hosting</a></li> 
     
     </ul>
      </div>
      <div class="bottom">&nbsp;</div>
    </div>
 <!-- ebd category block-->
<?php } ?>

<?php if($loaidomain){?>

 <!-- category block-->
    <div class="box">
      <div class="top"><img src="view/theme/default/image/icon/30x30/home.png" alt="" />Dịch vụ hosting</div>
     <div class="" id="category">
     <ul>
    
     <li><a href="index.php?module=dichvu&act=domain&type=qt">Tên miền quốc tế</a></li>
     <li><a href="index.php?module=dichvu&act=domain&type=vn">Tên miền Việt Nam</a></li>
     <li><a href="index.php?module=dichvu&act=checkdomain">Kiểm tra tên miền</a></li>
     <li><a href="index.php?module=dichvu&act=ktdomain">Kiến thức tên miền</a></li>
     
     </ul>
      </div>
      <div class="bottom">&nbsp;</div>
    </div>
 <!-- ebd category block-->
<?php } ?>

<!-- start lien ket web -->
    <div class="box">
        <div class="top"><img src="view/theme/default/image/bestsellers.png" alt="" /><?php echo "Liên kết website";?></div>
        <div class="middle">
        <select onchange="window.open(this.options[this.selectedIndex].value,'_blank')">
        <option>----------Lựa chọn Website-----------</option>
          <?php foreach($list_lkw as $lkw) {?>
          <option value ="<?php echo $lkw['link'];?>"><?php echo $lkw['ten_lien_ket_web'];?></option>
          <?php } ?>
        </select>
         </div>
        <div class="bottom">&nbsp;</div>
    </div>
<!-- end lien ket web -->  

<!-- quang cao -->
    <div class="box">
        <div class="top"><img src="view/theme/default/image/bestsellers.png" alt="" /><?php echo "SƠN LA";?></div>
        <div class="middle">
        <?php if($list_qct){?>
        <?php foreach ($list_qct as $qct) { ?>
          <a href ="index.php?module=quangcao&act=view&id=<?php echo $qct['id']; ?>" target="_blank"> <img src ="<?php echo $qct['file']; ?>" width ="230" title="<?php     echo $qct['ten']; ?>" /></a>
        <?php } }?>
        </div>
        <div class="bottom">&nbsp;</div>
    </div>
<!-- start statics -->  
<!-- quang cao -->
    <div class="box">
        <div class="top"><img src="view/theme/default/image/bestsellers.png" alt="" /><?php echo "Đối tác dịch vụ";?></div>
        <div class="middle">
        <?php if($list_doitac){?>
        <?php foreach ($list_doitac as $doitac) { ?>
          <a href ="index.php?module=quangcao&act=view&id=<?php echo $doitac['id']; ?>" target="_blank"> <img src ="<?php echo $doitac['file']; ?>" width ="230" title="<?php     echo $doitac['ten']; ?>" /></a>
        <?php } }?>
        </div>
        <div class="bottom">&nbsp;</div>
    </div>
     
   
    
</div> <!-- end left--> 